package cn.hongwei.nacos.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author Great
 * @email 1224028994@qq.com
 * 单个实力详情
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class InstanceDetail implements Serializable {

    private String ip;
    private Integer port;
    private boolean valid;
    private boolean healthy;
    private boolean marked;
    private String instanceId;
    //有个元数据，todo
    private boolean enabled;
    private BigDecimal weight;
    private String clusterName;
    private String serviceName;
    private boolean ephemeral;
}
